package com.spzx.product.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author 快点干早点散
 * @Create 2025/5/5 17:43
 * Description:
 */
@Data
public class CategoryVo {

    @Schema(description = "分类id")
    private Long id;
    @Schema(description = "分类名称")
    private String name;
    @Schema(description = "图片地址")
    private String imageUrl;
    @Schema(description = "上级分类id")
    private Long parentId;
    @Schema(description = "子类别")
    private List<CategoryVo> children = new ArrayList<>();

}
